package com.andf.common;


public class BaseForm {
	public Integer startRow = 0;
	public Integer maxRows = 0;
	public Integer allCount;// 总行数
	protected String orderConditionString;

	protected transient String createuserid;// 创建人ID
	protected transient String createname;// 创建人名称
	protected transient String createdate;// 创建日期
	protected transient String modifyuserid;// 修改人ID
	protected transient String modifyname;// 修改人名称
	protected transient String modifydate;// 修改日期
	
	/**
	 * 每页显示条数
	 */
	public Integer rows = 10;
	/**
	 * 下一页 页号
	 */
	public Integer page = 1;

	public Integer getPage() {
		return page;
	}

	public Integer getStartRow() {
		startRow = (page == 1) ? 1 : (page - 1) * rows + 1;
		return startRow;
	}

	public Integer getMaxRows() {
		return rows * page;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public void setStartRow(Integer startRow) {
		this.startRow = startRow;
	}

	public void setMaxRows(Integer maxRows) {
		this.maxRows = maxRows;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getAllCount() {
		return allCount;
	}

	public void setAllCount(Integer allCount) {
		this.allCount = allCount;
	}

	public String getCreatename() {
		return createname;
	}

	public void setCreatename(String createname) {
		this.createname = createname;
	}

	public String getModifyname() {
		return modifyname;
	}

	public void setModifyname(String modifyname) {
		this.modifyname = modifyname;
	}

	public String getCreateuserid() {
		return createuserid;
	}

	public void setCreateuserid(String createuserid) {
		this.createuserid = createuserid;
	}

	public String getModifyuserid() {
		return modifyuserid;
	}

	public void setModifyuserid(String modifyuserid) {
		this.modifyuserid = modifyuserid;
	}

	public String getCreatedate() {
		return createdate;
	}

	public void setCreatedate(String createdate) {
		this.createdate = createdate;
	}

	public String getModifydate() {
		return modifydate;
	}

	public void setModifydate(String modifydate) {
		this.modifydate = modifydate;
	}

	public String getOrderConditionString() {
		return orderConditionString;
	}

	public void setOrderConditionString(String orderConditionString) {
		this.orderConditionString = orderConditionString;
	}
}
